#ifndef _IO_EVENT_LOOP_H_
#define _IO_EVENT_LOOP_H_

#include "ioeventdef.h"

uvNameSpaceBegin


typedef void(*event_thread_cb)(int istart, void *pdata);

struct io_event_loop {
	void*				data;
	struct event_base*	loop;
	struct event*		evtime;
	struct timeval		tv;
	event_thread_cb		cb;
	unsigned long		size;

};
int create_ioeventloop(io_event_loop* eventloop, event_thread_cb cb, void*	data);
int	destory_ioeventloop(io_event_loop* eventloop);
int	run_ioeventloop(io_event_loop* eventloop);

uvNameSpaceEnd

#endif